#pragma once
#include "Vector.hpp"
#include "BezierSolid.h"
#include "ComHeader.h"

class BezierCell;
class Intersection
{
public:
    double distance;
    BezierCell* obj;
    bool intsectFlag;
    bool isSurface;

    Intersection(){
        distance= std::numeric_limits<double>::max();
        obj =nullptr;
        intsectFlag = false;
        isSurface = false;
    }
    Intersection(double dis,BezierCell* curObj,bool intsectFlag,bool isSurface) {
        distance = dis;
        obj = curObj;
        this->intsectFlag = intsectFlag;
        this->isSurface = isSurface;
    }
    
};
